package hu.cskassai.sad.model.graph.internal;

import hu.cskassai.sad.model.graph.Edge;
import hu.cskassai.sad.model.graph.Vertex2D;

import java.math.BigDecimal;

public class EdgeImpl extends AbstractGraphElement implements Edge {
	
	private Vertex2D fromVertex;
	
	private Vertex2D toVertex;
	
	private BigDecimal weight = new BigDecimal(1);
	
	public BigDecimal getWeight() {
		return weight;
	}
	
	public void setWeight(final BigDecimal weight) {
		this.weight = weight;
	}
	
	public Vertex2D getFromVertex() {
		return fromVertex;
	}
	
	public void setFromVertex(final Vertex2D fromVertex) {
		this.fromVertex = fromVertex;
	}
	
	public Vertex2D getToVertex() {
		return toVertex;
	}
	
	public void setToVertex(final Vertex2D toVertex) {
		this.toVertex = toVertex;
	}
	
}
